Optimal. Leaf size=320 \[ \frac {2 b^2 \left (7 a^2-3 b^2\right ) \sin (c+d x)}{3 a^2 d \left (a^2-b^2\right )^2 \sqrt {a+b \cos (c+d x)}}+\frac {2 b^2 \sin (c+d x)}{3 a d \left (a^2-b^2\right ) (a+b \cos (c+d x))^{3/2}}+\frac {2 b \sqrt {\frac {a+b \cos (c+d x)}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{3 a d \left (a^2-b^2\right ) \sqrt {a+b \cos (c+d x)}}-\frac {2 b \left (7 a^2-3 b^2\right ) \sqrt {a+b \cos (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{3 a^2 d \left (a^2-b^2\right )^2 \sqrt {\frac {a+b \cos (c+d x)}{a+b}}}+\frac {2 \sqrt {\frac {a+b \cos (c+d x)}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{a^2 d \sqrt {a+b \cos (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.87, antiderivative size = 320, normalized size of antiderivative = 1.00, number of steps used = 10, number of rules used = 10, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.476, Rules used = {2802, 3055, 3059, 2655, 2653, 3002, 2663, 2661, 2807, 2805} \[ \frac {2 b^2 \left (7 a^2-3 b^2\right ) \sin (c+d x)}{3 a^2 d \left (a^2-b^2\right )^2 \sqrt {a+b \cos (c+d x)}}+\frac {2 b^2 \sin (c+d x)}{3 a d \left (a^2-b^2\right ) (a+b \cos (c+d x))^{3/2}}+\frac {2 b \sqrt {\frac {a+b \cos (c+d x)}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{3 a d \left (a^2-b^2\right ) \sqrt {a+b \cos (c+d x)}}-\frac {2 b \left (7 a^2-3 b^2\right ) \sqrt {a+b \cos (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{3 a^2 d \left (a^2-b^2\right )^2 \sqrt {\frac {a+b \cos (c+d x)}{a+b}}}+\frac {2 \sqrt {\frac {a+b \cos (c+d x)}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{a^2 d \sqrt {a+b \cos (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2653
Rule 2655
Rule 2661
Rule 2663
Rule 2802
Rule 2805
Rule 2807
Rule 3002
Rule 3055
Rule 3059
Rubi steps
\begin {align*} \int \frac {\sec (c+d x)}{(a+b \cos (c+d x))^{5/2}} \, dx &=\frac {2 b^2 \sin (c+d x)}{3 a \left (a^2-b^2\right ) d (a+b \cos (c+d x))^{3/2}}+\frac {2 \int \frac {\left (\frac {3}{2} \left (a^2-b^2\right )-\frac {3}{2} a b \cos (c+d x)+\frac {1}{2} b^2 \cos ^2(c+d x)\right ) \sec (c+d x)}{(a+b \cos (c+d x))^{3/2}} \, dx}{3 a \left (a^2-b^2\right )}\\ &=\frac {2 b^2 \sin (c+d x)}{3 a \left (a^2-b^2\right ) d (a+b \cos (c+d x))^{3/2}}+\frac {2 b^2 \left (7 a^2-3 b^2\right ) \sin (c+d x)}{3 a^2 \left (a^2-b^2\right )^2 d \sqrt {a+b \cos (c+d x)}}+\frac {4 \int \frac {\left (\frac {3}{4} \left (a^2-b^2\right )^2-\frac {1}{2} a b \left (3 a^2-b^2\right ) \cos (c+d x)-\frac {1}{4} b^2 \left (7 a^2-3 b^2\right ) \cos ^2(c+d x)\right ) \sec (c+d x)}{\sqrt {a+b \cos (c+d x)}} \, dx}{3 a^2 \left (a^2-b^2\right )^2}\\ &=\frac {2 b^2 \sin (c+d x)}{3 a \left (a^2-b^2\right ) d (a+b \cos (c+d x))^{3/2}}+\frac {2 b^2 \left (7 a^2-3 b^2\right ) \sin (c+d x)}{3 a^2 \left (a^2-b^2\right )^2 d \sqrt {a+b \cos (c+d x)}}-\frac {4 \int \frac {\left (-\frac {3}{4} b \left (a^2-b^2\right )^2-\frac {1}{4} a b^2 \left (a^2-b^2\right ) \cos (c+d x)\right ) \sec (c+d x)}{\sqrt {a+b \cos (c+d x)}} \, dx}{3 a^2 b \left (a^2-b^2\right )^2}-\frac {\left (b \left (7 a^2-3 b^2\right )\right ) \int \sqrt {a+b \cos (c+d x)} \, dx}{3 a^2 \left (a^2-b^2\right )^2}\\ &=\frac {2 b^2 \sin (c+d x)}{3 a \left (a^2-b^2\right ) d (a+b \cos (c+d x))^{3/2}}+\frac {2 b^2 \left (7 a^2-3 b^2\right ) \sin (c+d x)}{3 a^2 \left (a^2-b^2\right )^2 d \sqrt {a+b \cos (c+d x)}}+\frac {\int \frac {\sec (c+d x)}{\sqrt {a+b \cos (c+d x)}} \, dx}{a^2}+\frac {b \int \frac {1}{\sqrt {a+b \cos (c+d x)}} \, dx}{3 a \left (a^2-b^2\right )}-\frac {\left (b \left (7 a^2-3 b^2\right ) \sqrt {a+b \cos (c+d x)}\right ) \int \sqrt {\frac {a}{a+b}+\frac {b \cos (c+d x)}{a+b}} \, dx}{3 a^2 \left (a^2-b^2\right )^2 \sqrt {\frac {a+b \cos (c+d x)}{a+b}}}\\ &=-\frac {2 b \left (7 a^2-3 b^2\right ) \sqrt {a+b \cos (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{3 a^2 \left (a^2-b^2\right )^2 d \sqrt {\frac {a+b \cos (c+d x)}{a+b}}}+\frac {2 b^2 \sin (c+d x)}{3 a \left (a^2-b^2\right ) d (a+b \cos (c+d x))^{3/2}}+\frac {2 b^2 \left (7 a^2-3 b^2\right ) \sin (c+d x)}{3 a^2 \left (a^2-b^2\right )^2 d \sqrt {a+b \cos (c+d x)}}+\frac {\sqrt {\frac {a+b \cos (c+d x)}{a+b}} \int \frac {\sec (c+d x)}{\sqrt {\frac {a}{a+b}+\frac {b \cos (c+d x)}{a+b}}} \, dx}{a^2 \sqrt {a+b \cos (c+d x)}}+\frac {\left (b \sqrt {\frac {a+b \cos (c+d x)}{a+b}}\right ) \int \frac {1}{\sqrt {\frac {a}{a+b}+\frac {b \cos (c+d x)}{a+b}}} \, dx}{3 a \left (a^2-b^2\right ) \sqrt {a+b \cos (c+d x)}}\\ &=-\frac {2 b \left (7 a^2-3 b^2\right ) \sqrt {a+b \cos (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{3 a^2 \left (a^2-b^2\right )^2 d \sqrt {\frac {a+b \cos (c+d x)}{a+b}}}+\frac {2 b \sqrt {\frac {a+b \cos (c+d x)}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{3 a \left (a^2-b^2\right ) d \sqrt {a+b \cos (c+d x)}}+\frac {2 \sqrt {\frac {a+b \cos (c+d x)}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{a^2 d \sqrt {a+b \cos (c+d x)}}+\frac {2 b^2 \sin (c+d x)}{3 a \left (a^2-b^2\right ) d (a+b \cos (c+d x))^{3/2}}+\frac {2 b^2 \left (7 a^2-3 b^2\right ) \sin (c+d x)}{3 a^2 \left (a^2-b^2\right )^2 d \sqrt {a+b \cos (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 4.80, size = 464, normalized size = 1.45 \[ \frac {\frac {4 b^2 \sin (c+d x) \left (8 a^3+b \left (7 a^2-3 b^2\right ) \cos (c+d x)-4 a b^2\right )}{\left (a^3-a b^2\right )^2 (a+b \cos (c+d x))^{3/2}}+\frac {-\frac {8 a b \left (3 a^2-b^2\right ) \sqrt {\frac {a+b \cos (c+d x)}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{\sqrt {a+b \cos (c+d x)}}+\frac {2 i \left (3 b^2-7 a^2\right ) \csc (c+d x) \sqrt {-\frac {b (\cos (c+d x)-1)}{a+b}} \sqrt {-\frac {b (\cos (c+d x)+1)}{a-b}} \left (b \left (b \Pi \left (\frac {a+b}{a};i \sinh ^{-1}\left (\sqrt {-\frac {1}{a+b}} \sqrt {a+b \cos (c+d x)}\right )|\frac {a+b}{a-b}\right )-2 a F\left (i \sinh ^{-1}\left (\sqrt {-\frac {1}{a+b}} \sqrt {a+b \cos (c+d x)}\right )|\frac {a+b}{a-b}\right )\right )-2 a (a-b) E\left (i \sinh ^{-1}\left (\sqrt {-\frac {1}{a+b}} \sqrt {a+b \cos (c+d x)}\right )|\frac {a+b}{a-b}\right )\right )}{a \sqrt {-\frac {1}{a+b}}}+\frac {2 \left (6 a^4-19 a^2 b^2+9 b^4\right ) \sqrt {\frac {a+b \cos (c+d x)}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 b}{a+b}\right )}{\sqrt {a+b \cos (c+d x)}}}{a^2 (a-b)^2 (a+b)^2}}{6 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sec \left (d x + c\right )}{{\left (b \cos \left (d x + c\right ) + a\right )}^{\frac {5}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 2.72, size = 845, normalized size = 2.64 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sec \left (d x + c\right )}{{\left (b \cos \left (d x + c\right ) + a\right )}^{\frac {5}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {1}{\cos \left (c+d\,x\right )\,{\left (a+b\,\cos \left (c+d\,x\right )\right )}^{5/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sec {\left (c + d x \right )}}{\left (a + b \cos {\left (c + d x \right )}\right )^{\frac {5}{2}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________